using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

namespace MWC.NetcampCheckin
{
    [Activity(Label = "Netcamp Thank You")]
    public class NetcampThankYou : Activity
    {
        protected override void OnCreate(Bundle bundle)
        {
            try
            {
                base.OnCreate(bundle);

                SetContentView(Resource.Layout.NetcampThankYou);

                Button endButton = FindViewById<Button>(Resource.Id.End);
                endButton.Click += (s, e) =>
                    {
                        Intent intent = new Intent(Intent.ActionMain);
                        intent.AddCategory(Intent.CategoryHome);
                        intent.SetFlags(ActivityFlags.NewTask);
                        StartActivity(intent);
                    };
            }
            catch (Exception e)
            {
                MWCApp.LogDebug(e);
                NetcampAlerts.UnknownError(this);
            }
        }
    }
}